#ifndef EXPR_H
#define EXPR_H
#include "sys.h"
typedef struct {
  int type;
  int val;
} token;

extern bool eval_func_success;
bool isoperand(int type);
bool isoperator(int type);
int priority_of_operator(int);
bool priority_cmp(int operator1, int operator2);
bool check_parentheses(unsigned p, unsigned q);
bool make_token(char *e);
int eval_expression(uint32_t p, uint32_t q);
char *eval(char *s, char *buf);
bool isnum(int c);
#endif